<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href="__PUBLIC__/admin/css/pintuer.css">
    <link rel="stylesheet" href="__PUBLIC__/admin/css/admin.css">
    <script src="__PUBLIC__/admin/js/jquery.min.1.11.3.js"></script>
    <script src="__PUBLIC__/admin/js/pintuer.js"></script>
</head>
<body>
<div style="height:10px;background-color: #FFFFA5;"></div>
<form method="post" action="" id="listform">
    <div class="panel admin-panel">
        <div class="panel-head"><strong class="icon-reorder">章节列表</strong> </div>
        <div class="padding border-bottom">

            <div class="label">
                <label>书本名称：<!--{$Think.get.bookname}--></label>
            </div>

        </div>
        <table class="table table-hover text-center">
            <tr>
                <th width="10%" style="text-align:left; padding-left:20px;">ID</th>
                <th width="20%">章节名称</th>
                <th width="30%">章节图片</th>
                <th width="10%">章节音频</th>
                <th width="10%">章节时长</th>
                <th width="30%">操作</th>
            </tr>

                <foreach name="arr" item="value">
                <tr>
                    <td><!--{$value['id']}--></td>
                    <td ><!--{$value['booksname']}--></td>
                    <td ><img src="__ROOT__/upload/bookimage/<!--{$value['booksimage']}-->" width="100" height="100" alt=""/> </td>
                    <td ><!--{$value['audio']}--></td>
                    <td ><!--{$value['timel']}--></td>
                    <td style="line-height: 50px;"><div class="button-group"  >

                        <a style="margin-right:20px;border-radius: 4px;height:35px;line-height:0px;" class="button border-main" href="__CONTROLLER__/adminupdate?roleid=<!--{$value['id']}-->"><span class="icon-edit"></span>编辑</a>
                        <a style="border-radius: 4px;height:35px;line-height:0px;" class="button border-red" href="javascript:void(0)" onclick="return del(<!--{$value['id']}-->)"><span class="icon-trash-o"></span>删除</a>

                    </div></td>
                </tr>
                </foreach>
                <tr>


                </tr>
                <tr>
                    <td colspan="8"> <!--{$pageinfo}-->      </td>
                </tr>
        </table>
    </div>
</form>
<script type="text/javascript">
  function del(id){
      if(confirm('确定要删除吗')){
          location.href="<!--{:U('admin/admin/admindelete','',false)}-->?id="+id;
      }
  }

</script>
</body>
</html>